//
// ShareActionSheet.h
// ShareActionSheetTest
//
//  Created by on 15-9-15.
//  Copyright (c) 2015年  All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ShareActionSheetDelegate <NSObject>

@optional
- (void)choseAtIndex:(NSInteger)index;

@end

@interface ShareActionSheet : UIView
{
    UIButton * _cancelButton;//取消按钮
    UIView * _coverView;
    UILabel *_headerLabel;//头部label
}

@property(nonatomic,strong)NSArray * buttons;//分享按钮
@property(nonatomic,strong)UIImageView * backgroundImageView;

@property(nonatomic,assign)id<ShareActionSheetDelegate> delegate;

- (id)initWithButtons:(NSArray *)buttons;
- (void)showInView:(UIView *)view;
- (void)dissmiss;

@end


@interface ShareActionSheetButton : UIView
@property(nonatomic,strong)UIButton * imgButton;
@property(nonatomic,strong)UILabel * titleLabel;
+(ShareActionSheetButton *)buttonWithImage:(UIImage *)image title:(NSString *)title;
@end